saveManual

fun <T : Config> saveManual(name: String, folder: String = "", subfolder: String = "", configClass: T)

Deprecated

Consider save(configClass) for consistent application of names

Saves a config to file without reading or updating.

Performs a config save. Use after a config is updated in some way in-game. Does not perform any validation or reading/deleting of old or redundant files. This is used automatically by FzzyConfig when a client updates client-sided settings, receives an update from the server, or receives and accepts a forwarded setting; and also on the server when the server receives an update from a valid client.

Parameters

T

the type of the config, any subclass of Config

name

the name of the config. Needs to match to the naming used in readOrCreateAndValidate

folder

the folder the config is stored in. Needs to match the folder used in readOrCreateAndValidate

subfolder

the subfolder inside folder that the config is stored in. Needs to match the subfolder used in readOrCreateAndValidate

configClass

instance of the config to save

See also